﻿using System;
using Telerik.Web.UI;

public partial class Demos_GridDemo_ErrorList : AdminBasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        SqlPager pager = new SqlPager("lt_ErrorLogs", "l_id", "*");
        pager.OrderBy = "l_created desc";
        RadGridBinder.Create(RadGrid1, pager);
    }
    protected void RadGrid1_DeleteCommand(object sender, GridCommandEventArgs e)
    {
        GridCommander.Delete(e, "delete lt_ErrorLogs where l_id=@l_id", "l_id");
    }
}